package giab.weixin.web.email;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

public class MyAuthenticator extends Authenticator {

	private String userName = null;
	private String password = null;
	
	public MyAuthenticator(String name,String pwd){
		userName = name;
		password = pwd;		
	}
	
	protected PasswordAuthentication getPasswordAuthentication() {
		return new PasswordAuthentication(userName, password);
	}
}
